import sys  
from PyQt5.QtWidgets import QApplication, QMainWindow  
from Ui_frame_0 import Ui_MainWindow  # 导入转换后的 UI 类  
  
class MyApp(QMainWindow, Ui_MainWindow):  # 继承 QMainWindow 和你的 UI 类  
    def __init__(self):  
        super().__init__()  
        self.setupUi(self)  # 初始化 UI  
  
if __name__ == "__main__":   
    app = QApplication(sys.argv)  
    window = MyApp()  
    window.show()  
    sys.exit(app.exec_())